﻿<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:Avanade="urn:Avanade" xmlns:rs='urn:schemas-microsoft-com:rowset' xmlns:z='#RowsetSchema'>
  <xsl:template match="/">
    <input type="hidden" name="selectedButton" value="" />
    <!-- Titre, surtitre et vignette (sans date) -->
	<table width="100%" border="0" cellspacing="1" cellpadding="1" summary="Webpart ANNONCE">
	  <xsl:for-each select="xml/rs:data/z:row">
		<tr>
			<td valign="top" width="2%">
			  <xsl:if test="normalize-space(translate(current()/@ows_Photo, ',', '')) != ''">
				<div style="float:left;padding-right:10px">
				  <img style="border: solid 1px #fce4ee;">
					<xsl:attribute name="src">
					  <xsl:value-of select="Avanade:FormatLink(current()/@ows_Photo)" />
					</xsl:attribute>
				  </img>
				</div>
			  </xsl:if>
			</td>
			<td style="background-color:#ffffff;width:98%;vertical-align:top;height:0%;padding-top:5px;padding-right:5px;font-size:10px">
				<span style="text-transform:uppercase;color:#4f4f4f;font-weight:bold">
				  <xsl:value-of select="current()/@ows_Surtitre" />
				</span>
				<br />
				<a style="font-size:11px;font-weight:bold">
				  <xsl:if test="normalize-space(//BaseUrl) != ''">
					<xsl:attribute name="href">
					  <xsl:value-of select="//BaseUrl" />
					  <xsl:value-of select="current()/@ows_ID" />
					</xsl:attribute>
				  </xsl:if>
				  <span style="color:#f21e8c">
					<xsl:value-of select="current()/@ows_Title" />
				  </span>
				</a>
			  <br />
			</td>
		</tr>
	  </xsl:for-each>
	  <xsl:if test="normalize-space(//NewFormURL) != ''">
		<tr>
		  <td class="ms-addnew" colspan="2">
			<![CDATA[<img alt="" src="_layouts/images/rect.gif" />&nbsp;<a class="ms-addnew" href="]]><xsl:value-of select="//NewFormURL" /><![CDATA[">Ajouter une nouvelle annonce</a>]]>
		  </td>
		</tr>
	  </xsl:if>
	</table>
  </xsl:template>
</xsl:stylesheet>